package com.raycloud.java.dada.enums;

/**
 * Created by:  intelliJ IDEA
 *
 * @Author albert
 * @Description:订单状态枚举
 * @Date:2017/7/13 上午10:12
 * @package:com.raycloud.java.dada.enums
 * @Modified By:
 */
public enum OrderStatusEnum {
    WAIT_ACCEPT(1,"待接单"),
    WAIT_TAKE(2,"待取货"),
    DELIVERING(3,"配送中"),
    FINISH(4,"已完成"),
    CANCELED(5,"已取消"),
    EXPIRED(7,"已过期"),
    APPOINT_BILL(8,"指派单"),
    SCHOOL_FOOD(1000,"系统故障订单发布失败");

    private int code;
    private String name;
    OrderStatusEnum(int code,String name){
        this.code = code;
        this.name = name;
    }

    public int getCode(){
        return code;
    }
    public String getName(){
        return name;
    }


}
